package com.dao.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Transient;

import com.dao.entity.base.BaseEntity;
import com.utils.enums.ENUM_SUCESS;

@SuppressWarnings("serial")
@Entity(name="loan_apply")
public class Apply extends BaseEntity{
	
	@Transient
	private int sex;
	
	private Long customerId;
	
	private String phone;
	
	private String userName;
	
	private String idCard;
	
	/**
	 * 年龄
	 */
	private Integer age;
	
	/**
	 * 贷款年限
	 */
	private Integer loanAge;
	
	/**
	 * 房龄
	 */
	private Integer houseAge;
	
	/**
	 * 出让地、划拨地
	 */
	private String landType;
	
	/**
	 * 是否经济适用房
	 */
	private Integer isEconomize;
	
	private Integer isComplete;
	
	private Long commisId;
	
	/**
	 * 专员是否反馈
	 */
	private Integer isFeedback;
	
	/**
	 * 征信文件
	 */
	@Column(length = 512)
	private String creditFile;
	
	/**
	 * 其他文件
	 */
	@Column(length = 512)
	private String otherFile;
	
	private Long bankId;
	
	private String bankName;
	
	public Apply() {
		this.isComplete = ENUM_SUCESS.NO.value;
	}
	
	public Integer getIsComplete() {
		return isComplete;
	}

	public void setIsComplete(Integer isComplete) {
		this.isComplete = isComplete;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}

	public Integer getLoanAge() {
		return loanAge;
	}

	public void setLoanAge(Integer loanAge) {
		this.loanAge = loanAge;
	}

	public Integer getHouseAge() {
		return houseAge;
	}

	public void setHouseAge(Integer houseAge) {
		this.houseAge = houseAge;
	}

	public String getLandType() {
		return landType;
	}

	public void setLandType(String landType) {
		this.landType = landType;
	}

	public Integer getIsEconomize() {
		return isEconomize;
	}

	public void setIsEconomize(Integer isEconomize) {
		this.isEconomize = isEconomize;
	}

	public Long getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Long customerId) {
		this.customerId = customerId;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public Long getCommisId() {
		return commisId;
	}

	public void setCommisId(Long commisId) {
		this.commisId = commisId;
	}

	public Integer getIsFeedback() {
		return isFeedback;
	}

	public void setIsFeedback(Integer isFeedback) {
		this.isFeedback = isFeedback;
	}

	public String getCreditFile() {
		return creditFile;
	}

	public void setCreditFile(String creditFile) {
		this.creditFile = creditFile;
	}

	public String getOtherFile() {
		return otherFile;
	}

	public void setOtherFile(String otherFile) {
		this.otherFile = otherFile;
	}

	public Long getBankId() {
		return bankId;
	}

	public void setBankId(Long bankId) {
		this.bankId = bankId;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	
}
